import http from '../utils/request'

// export const reqHomeData = () => http({url:'/home/getData',method:'get'})
// 首页的数据
export const reqHomeData = () => {
    return http.get('/home/getData')
}
// 用户列表
export const getUser = (params) => {
    return http.get('/user/getUser',params)
}
// 新增用户
export const userAdd = (data) => {
    return http.post('/user/add',data)
}
// 编辑用户
export const userEdit = (data) => {
    return http.post('/user/edit',data)
}
// 删除用户
export const userDel = (data) => {
    return http.post('/user/del',data)
}